package com.woniu.service.impl;

import com.woniu.dao.MapLearnDao;
import com.woniu.domain.MapLearn;
import com.woniu.service.MapLearnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author: zcl  <br/>
 * Date: 2021/6/9:14:30  <br/>
 * Description:
 */
@Service
public class MapLearnServiceImpl implements MapLearnService {
    @Autowired(required = false)
    MapLearnDao mapLearnDao;

    @Override
    public int addMapLearn(MapLearn mapLearn) {
        return mapLearnDao.addMapLearn(mapLearn);
    }

    @Override
    public MapLearn findMapLearnById(Integer id) {
        return mapLearnDao.findMapLearnById(id);
    }

    @Override
    public MapLearn findMapLearnByName(String mapName) {
        return mapLearnDao.findMapLearnByName(mapName);
    }

    @Override
    public int updateMapLearn(MapLearn mapLearn) {
        return mapLearnDao.updateMapLearn(mapLearn);
    }


    @Override
    public List<MapLearn> getQueryAllMap() {
        return mapLearnDao.getQueryAllMap();
    }

    @Override
    public List<MapLearn> conditionQueryAllMap(MapLearn mapLearn) {
        return mapLearnDao.conditionQueryAllMap(mapLearn);
    }

    @Override
    public int batchDeletion(List<Integer> ids){
        return mapLearnDao.batchDeletion(ids);
    }

    @Override
    public MapLearn getMapLearnById(Integer id) {
        return mapLearnDao.getMapLearnById(id);

    }
}
